using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._LocationReferencingTools
{
    /// <summary>
    /// <para>Delete Routes</para>
    /// <para>Deletes routes and associated data elements from the LRS Network.</para>
    /// <para>从 LRS 网络中删除路由和关联的数据元素。</para>
    /// </summary>    
    [DisplayName("Delete Routes")]
    public class DeleteRoutes : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public DeleteRoutes()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_route_features">
        /// <para>Input Route Features</para>
        /// <para>The route feature class registered with the network.</para>
        /// <para>注册到网络的路径要素类。</para>
        /// </param>
        public DeleteRoutes(object _in_route_features)
        {
            this._in_route_features = _in_route_features;
        }
        public override string ToolboxName => "Location Referencing Tools";

        public override string ToolName => "Delete Routes";

        public override string CallName => "locref.DeleteRoutes";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_route_features, _delete_associated_calibration_points.GetGPValue(), _delete_associated_events.GetGPValue(), _delete_associated_centerlines.GetGPValue(), _updated_route_features, _out_details_file, _out_derived_route_features];

        /// <summary>
        /// <para>Input Route Features</para>
        /// <para>The route feature class registered with the network.</para>
        /// <para>注册到网络的路径要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Route Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_route_features { get; set; }


        /// <summary>
        /// <para>Delete associated calibration points</para>
        /// <para><xdoc>
        ///   <para>Specifies whether calibration points associated with the deleted routes will be deleted.</para>
        ///   <bulletList>
        ///     <bullet_item>Checked—Calibration points associated with the routes will be deleted.</bullet_item><para/>
        ///     <bullet_item>Unchecked—Calibration points associated with the routes will not be deleted. This is the default.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定是否删除与已删除路径关联的校准点。</para>
        ///   <bulletList>
        ///     <bullet_item>选中 - 将删除与路径关联的校准点。</bullet_item><para/>
        ///     <bullet_item>未选中 - 不会删除与路径关联的校准点。这是默认设置。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Delete associated calibration points")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _delete_associated_calibration_points_value _delete_associated_calibration_points { get; set; } = _delete_associated_calibration_points_value._false;

        public enum _delete_associated_calibration_points_value
        {
            /// <summary>
            /// <para>NO_DELETE_CALIBRATION_POINTS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("NO_DELETE_CALIBRATION_POINTS")]
            [GPEnumValue("false")]
            _false,

            /// <summary>
            /// <para>DELETE_CALIBRATION_POINTS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DELETE_CALIBRATION_POINTS")]
            [GPEnumValue("true")]
            _true,

        }

        /// <summary>
        /// <para>Delete associated events</para>
        /// <para><xdoc>
        ///   <para>Specifies whether events associated with the deleted routes will be deleted.</para>
        ///   <bulletList>
        ///     <bullet_item>Checked—Events associated with the routes will be deleted.</bullet_item><para/>
        ///     <bullet_item>Unchecked—Events associated with the routes will not be deleted. This is the default.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定是否删除与已删除路由关联的事件。</para>
        ///   <bulletList>
        ///     <bullet_item>选中 - 将删除与路径关联的事件。</bullet_item><para/>
        ///     <bullet_item>未选中 - 不会删除与路径关联的事件。这是默认设置。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Delete associated events")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _delete_associated_events_value _delete_associated_events { get; set; } = _delete_associated_events_value._false;

        public enum _delete_associated_events_value
        {
            /// <summary>
            /// <para>NO_DELETE_EVENTS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("NO_DELETE_EVENTS")]
            [GPEnumValue("false")]
            _false,

            /// <summary>
            /// <para>DELETE_EVENTS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DELETE_EVENTS")]
            [GPEnumValue("true")]
            _true,

        }

        /// <summary>
        /// <para>Delete associated centerlines</para>
        /// <para><xdoc>
        ///   <para>Specifies whether centerlines that are exclusively associated with the deleted routes will be deleted.</para>
        ///   <bulletList>
        ///     <bullet_item>Checked—Centerlines exclusively associated with the selected routes will be deleted. If centerlines are shared between networks, those common centerlines will not be deleted.</bullet_item><para/>
        ///     <bullet_item>Unchecked—Centerlines will not be deleted. This is the default.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定是否删除与已删除路由独占关联的中心线。</para>
        ///   <bulletList>
        ///     <bullet_item>选中 - 将删除与选定路径独占关联的中心线。如果中心线在网络之间共享，则不会删除这些公共中心线。</bullet_item><para/>
        ///     <bullet_item>未选中 - 不会删除中心线。这是默认设置。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Delete associated centerlines")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _delete_associated_centerlines_value _delete_associated_centerlines { get; set; } = _delete_associated_centerlines_value._false;

        public enum _delete_associated_centerlines_value
        {
            /// <summary>
            /// <para>NO_DELETE_CENTERLINES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("NO_DELETE_CENTERLINES")]
            [GPEnumValue("false")]
            _false,

            /// <summary>
            /// <para>DELETE_CENTERLINES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DELETE_CENTERLINES")]
            [GPEnumValue("true")]
            _true,

        }

        /// <summary>
        /// <para>Updated Route Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Route Features")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public List<object> _updated_route_features { get; set; }


        /// <summary>
        /// <para>Output Results File</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Results File")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_details_file { get; set; }


        /// <summary>
        /// <para>Output Derived Route Features</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Derived Route Features")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_derived_route_features { get; set; }


        public DeleteRoutes SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}